package com.wechat.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by Administrator on 2017/3/15.
 */
@Entity
@Table(name = "tb_user")
public class User implements Serializable{

    @Column(name = "id",columnDefinition = "varchar(100) comment '主键'")
    @Id
    public String id;

    @Column
    public String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
